package org.lecric.wind44.client.model;

import com.google.gwt.user.client.rpc.IsSerializable;

public class Sail implements IsSerializable, Comparable<Sail> {
	private UserInfo userInfo;
	private float surface;

	public UserInfo getUserInfo() {
		return userInfo;
	}
	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}
	public float getSurface() {
		return surface;
	}
	public void setSurface(float surface) {
		this.surface = surface;
	}
	@Override
	public int compareTo(Sail sail) {
		return (int)((surface-sail.surface)*100);
	}
}
